package com.t.bricks.bussiness.db.mapper.examination;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.t.bricks.bussiness.db.entity.examination.Examination;
import com.t.bricks.bussiness.db.entity.examination.base.ExaminationBase;

@Mapper
public interface ExaminationMapper {
	
	/**
	 * 添加
	 * @Param examination
	 * @return int
	 */
	int add(Examination examination);

	/**
	 * 删除
	 * @Param sId
	 * @Param iVersion
	 * @return int
	 */
	int del(@Param("sId") String sId, @Param("iVersion") Integer iVersion);

	/**
	 * 修改
	 * 注意:当对象的属性值为null时不更新字段
	 * @Param examinationBase
	 * @return int
	 */
	int edit(ExaminationBase examinationBase);
	
}
